package com.liaoyoule.multiple.service;

import com.liaoyoule.multiple.dao.page.PageInfo;
import com.liaoyoule.multiple.query.MultipleQuery;
import org.springframework.data.domain.Sort;

import java.util.List;

/**
 * Created by cdyoue on 2017/2/24.
 */
public interface IBaseService<T,DTO> {
    PageInfo<DTO> listPageinfo(List<MultipleQuery> multipleQueries, Integer page, Integer pageSize, Sort sort);

    DTO listInfo(Integer id);

    DTO listInfo(T entity);

    DTO save(T entity);

    DTO updateSelective(T entity);

    void batchDelete(List<String> ids);




}
